//package com.example.lib_image.glide.coil
//
//import android.content.Context
//import android.widget.ImageView
////import coil3.ImageLoader
////import coil3.network.NetworkHeaders
////import coil3.network.httpHeaders
////import coil3.request.ImageRequest
////import coil3.request.target
//
////通过IMageView添加扩展函数load(),直接调用即可
//object CoilImgLoader {
//
//    suspend fun loadUrlImage(context: Context, url: String, iv: ImageView) {
//        val loader = ImageLoader.Builder(context).build()
//
//        val headers = NetworkHeaders.Builder()
//            .set("Cache-Control", "no-cache")
//            .build()
//
//        val request = ImageRequest.Builder(context)
//            .data(url)
//            .httpHeaders(headers)
//            .target(iv)
//            .build()
//
//        loader.execute(request)
//    }
//}